package com.wanxi.service.user;

import com.wanxi.domain.ResultModel;
import com.wanxi.domain.user.UserModel;
import com.wanxi.domain.user.vo.UserModelVo;
import com.wanxi.domain.user.vo.UserPageVo;

import java.io.FileNotFoundException;
import java.util.List;

public interface IUserService {

    //跟据用户密码查询用户
//    ResultModel checkLogin(UserModel userModel);
    UserModel checkLogin(UserModel userModel);

    //查询所有
    List<UserModel> selectAll(int curr, int limit);

    //插入用户
    int insertUser(UserModel userModel);

    //跟据id查询用户
    UserModel selectById(Integer id);

    //更新数据
    int update(UserModel userModel);

    //通过id删除数据
    int deleteById(UserModel userModel);

    //获取用户居记录数
    int getCount() throws FileNotFoundException;

    //模糊查询
    List<UserModel> globalSearch(UserPageVo userPageVo);

    //模糊查询条数
    int getGlobalSeachCount(UserModelVo userModelVo);
}
